<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<script type="text/javascript" src="js/2h5_fb.js"></script>
		<meta name="format-detection" content="telephone=yes" />
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no" />
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
		<link rel="shortcut icon" href="img/icon/bitbug_favicon.ico">
		<link rel="stylesheet" href="css/video.css" />
		<title>蓝聘看看</title>
	</head>

	<body>
		<div class="video_play" id="cover">
			<div class="video_btn">
				<img src="img/icon/video_btn.png" />
			</div>
		</div>
		<div class="video_title" id="title"></div>
		<div class="video_ad"></div>

		<div class="up_lo" id="up_lo"></div>
		<div id="up_font" style="display: none;">
			<div class="up_font">
				<img src="img/icon/gif.gif">
			</div>
			<div class="fx_t">
				<div>请点击右上角</div>
				<div>在浏览器中打开</div>
			</div>
		</div>

		<script type="text/javascript" src="js/jquery/jquery-2.1.4.min.js"></script>
		<script type="text/javascript" src="js/util/util.js"></script>
		<script type="text/javascript">
			$(function() {
				var cover = getParam("videoCover");
				var title = getParam("videoTitle");
				if(cover) {
					$("#cover").css("background-image", "url(" + cover + ")");
					$(".video_btn").show();
				}
				if(title) {
					$("#title").html(decodeURI(title));
				}

				//				var ua = window.navigator.userAgent.toLowerCase();
				//				if(ua.match(/MicroMessenger/i) == 'micromessenger') { //判断是否在微信内置浏览器打开网页
				//					$("#up_lo").css("display", "block");
				//					$("#up_font").css("display", "block");
				//				} else {
				//					$("#up_lo").hide();
				//					$("#up_font").hide();
				//				}
				
				$("#cover").click(function() {
					if(navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {
						window.location.href = "https://itunes.apple.com/cn/app/id1441365926?mt=8"; //ios下载地址
					} else if(navigator.userAgent.match(/android/i)) {
						window.location.href = "https://android.myapp.com/myapp/detail.htm?apkName=com.lanpin.app&ADTAG=mobile"; //android下载地址
					}
				})

				$(document).on('visibilitychange webkitvisibilitychange', function() {
					document.hidden || document.webkitHidden;
				})

			})
		</script>
	</body>

</html>